package edu.tongji.engine.db.dao;

import java.util.List;
import java.util.Set;

import edu.tongji.engine.def.Node;
import edu.tongji.engine.exe.Token;

public interface ITokenDao {

	public Node getTokenNode(Token token);
	
	public Token getProcessToken(String processInstanceName);
	
	public Set<Token> getProcessChildTokens(String processInstanceName);
	
	public Token getTokenById(Long id);
	
	//public ExecutionContext getTokenContext(Token );
	
	public boolean saveToken(Token token);
	
	public boolean deleteToken(Token token);
	
	public List<Token> getNodeTokens(Token token);
	
	public boolean deleteAllTokens();
	
}
